package com.itedge.solutionmanager.domain.impl;

import javax.validation.constraints.Size;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.MappedSuperclass;

import com.itedge.infrastructure.domain.IEntity;


@MappedSuperclass
public abstract class AbstractPerson implements IEntity {

    @Size(max = 255)
    @Column(name="FIRST_NAME")
    protected String firstName;

    @Size(max = 255)
    @Column(name="SECOND_NAME")
    protected String secondName;  
    
    @Size(max = 255)
    @Column(name = "TITLE")
    protected String title;
    
    @Embedded
    protected Address address;
    
	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getFirstName() {
        return this.firstName;
    }

	public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

	public String getSecondName() {
        return this.secondName;
    }

	public void setSecondName(String secondName) {
        this.secondName = secondName;
    }
}
